# == Schema Information
#
# Table name: companies
#
#  id            :bigint           not null, primary key
#  address       :string
#  brief         :string
#  content       :string
#  deleted_at    :datetime
#  e_mail        :string
#  img           :string
#  logo          :string
#  name          :string
#  phone         :string
#  used          :boolean
#  created_at    :datetime         not null
#  updated_at    :datetime         not null
#  admin_user_id :integer
#
# Indexes
#
#  index_companies_on_admin_user_id  (admin_user_id)
#
class Company < ApplicationRecord

  belongs_to :admin_user
  has_many :company_cases
  has_many :carousels
  has_many :naviga_bars
  has_many :teams
  has_many :technical_cores

  mount_uploader :logo, CompanyLogoUploader
  mount_uploader :img, CompanyImgUploader
end
